Learn R Programming

coRNAi (version 1.22.0)

LS main: main effect estimation

Description

for rlmmain the main effects are estimated using rlm function from MASS package, with lmmain the OLS is used.

Usage

rlmmain(df,per=NULL) lmmain(df,per=NULL)

Arguments

df
df dataframe created by function cellHTS2df
per
string argument for which factor the analysis should be done separately, eg. replicate or batch

Value

lm,rlm

See Also

rlm,lm

Examples

Run this code
data(screen1_raw)
df = cellHTS2df(screen1_raw,neutral="Fluc")
df = weightDf(df,exclude=c("controlP1","controlP2","controlN1","controlN2","controlP1N1","double"))
mains = rlmmain(df)
hist(coef(mains))

Run the code above in your browser using DataLab